package com.spider.admin.conf.validator;


public enum Constants {
    //记录活动状态
    ACTIVE                     ("active", "活动"),
    ARCHIVE                      ("archive", "归档"),

    //服务在线状态
    ONLINE                     ("on", "上线"),
    OFFLINE                      ("off", "下线"),


    LOG_INDEX_NAME("api-call-logs-testT0","日志索引名称");
    //状态码
    private String code;
    //状态描述
    private String display;

    Constants(String code, String display) {
        this.code = code;
        this.display = display;
    }


    @Override
    public String toString() {
        return "ResultMessage{" +
                "code=" + code +
                ", message='" + display + '\'' +
                '}';
    }

    public String getCode() {
        return code;
    }

    public String getDisplay() {
        return display;
    }
}

